package com.itheima.day3singleInstance;

public class SingleInstance2 {
    private static SingleInstance2 singleInstance2;
    private SingleInstance2(){

    }
    public static SingleInstance2 getInstance(){
        if(singleInstance2 == null){
            singleInstance2 = new SingleInstance2();
        }
        return  singleInstance2;
    }
}
